package com.xoa.service.flowhook;

import java.util.List;

import com.xoa.util.ToJson;
import org.springframework.stereotype.Service;

import com.xoa.model.document.SysRuleModel;
import com.xoa.model.workflow.FlowHookWithBLOBs;

import javax.servlet.http.HttpServletRequest;

public interface FlowHookService {

	int saveHook(FlowHookWithBLOBs sysRule);

	int deleteHook(FlowHookWithBLOBs sysRule);

	int updateHook(FlowHookWithBLOBs sysRule);

	FlowHookWithBLOBs getHookById(FlowHookWithBLOBs sysRule);

	List<FlowHookWithBLOBs> getHookAll(FlowHookWithBLOBs sysRule);

	FlowHookWithBLOBs selectByOrderId(FlowHookWithBLOBs flowHookWithBLOBs);

	FlowHookWithBLOBs selectByName(FlowHookWithBLOBs flowHookWithBLOBs);

	ToJson<FlowHookWithBLOBs> queryFormId(String folwId);

	ToJson queryCountDataByQuarter(HttpServletRequest request);
}
